package com.ying.user.dao;

import com.ying.user.entity.MmPermission;
import com.ying.user.entity.MmPermissionQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MmPermissionDao {
    /**
     *
     * @mbg.generated 2020-07-13
     */
    long countByQuery(MmPermissionQuery example);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int deleteByQuery(MmPermissionQuery example);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int deleteByPrimaryKey(Long id);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int insert(MmPermission record);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int insertSelective(MmPermission record);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    List<MmPermission> selectByQuery(MmPermissionQuery example);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    MmPermission selectByPrimaryKey(Long id);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int updateByQuerySelective(@Param("record") MmPermission record, @Param("example") MmPermissionQuery example);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int updateByQuery(@Param("record") MmPermission record, @Param("example") MmPermissionQuery example);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int updateByPrimaryKeySelective(MmPermission record);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int updateByPrimaryKey(MmPermission record);

    List<MmPermission> selectByRoleIdList(@Param("ids") List<Long> roleIds);
}